package com.zrrd.learn.chapter01;

/**
 * 运算符
 *
 * @author asus
 * @version 1.0
 * @date 2023/4/8 15:45
 */
public class LearnDataType03 {

    public static void main(String[] args) {

        int aint  = 23456;

        System.out.printf("23456的个数是%d\n",aint % 10);
        System.out.printf("23456的十数是%d\n",(aint % 100)/10);
        System.out.printf("23456的百数是%d\n",(aint % 1000)/100);
        System.out.printf("23456的千数是%d\n",(aint % 10000)/1000);
        System.out.printf("23456的万数是%d\n",aint /10000);



    //告诉我哪个数 aint,告诉我求第几位
        //封装


    }

}
